package cn.wl.gulimall.order.feign;

import cn.wl.common.utils.R;
import cn.wl.gulimall.order.vo.WareSkuLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient("gulimall-ware")
public interface WmsFeignService {
    @PostMapping("/ware/waresku/hasstock")
     R getSkusHashStock(@RequestBody List<Long> skuIds);

    @PostMapping("/ware/wareinfo/fare")
    R getFare(@RequestBody Long id);

    @PostMapping("/ware/waresku/lock/order")
    R orderLockStock(@RequestBody WareSkuLockVo vo);
}
